package com.itheima.attendance.service;

import com.itheima.attendance.pojo.ArchiveMonthly;
import com.itheima.attendance.pojo.ArchiveMonthlyInfo;

import java.util.List;

/**
 * @author qiankaofei
 * @version 1.0
 * @date 2020/12/13 10:16
 */
public interface AttenArchiveService {

    /**
     * 查询月考勤归档数据
     */
    List<ArchiveMonthlyInfo> findAttenDateByDateMonth(String companyId, String archiveDate);

    /**
     * 月考勤数据归档
     */
    void saveArchive(String archiveDate, String companyId, String userId);

    /**
     * 根据年份和企业id查询年度考勤
     */
    List<ArchiveMonthly> findArchiveMonthlyByYearAndCompanyId(String year, String companyId);

    /**
     * 根据年度考勤的归档id查询考勤归档明细
     */
    List<ArchiveMonthlyInfo> findArchiveMonthInfoByArchiveId(String id);

    /**
     * 根据用户id和月份查询已经归档的考勤明细
     */
    ArchiveMonthlyInfo findArichiveInfoByUserIdAndYearMonth(String userId, String yearMonth);

}
